﻿<Page x:Class="IconEditorXBAP.Page1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Icon Editor Demo" Width="950" Height="600" Background="#FF1E1E1E">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="450"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>

        <Canvas x:Name="TopCanvas" Width="200" Height="200" Margin="25,25,0,0" Background="#FF515151"
                HorizontalAlignment="Left" VerticalAlignment="Top" >
        	<Canvas.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="2" ScaleY="2"/>
        		</TransformGroup>
        	</Canvas.RenderTransform>
        </Canvas>

        <TextBlock x:Name="InputTextBlock" Height="180" Margin="0,25,25,0" Background="#FF313131" Foreground="#FFCCCCCC"
                   VerticalAlignment="Top" TextWrapping="Wrap" Grid.Column="1" >
            {-100.0,-100.0,100.0,100.0,{<LineBreak />
            Ellipse(true,{0,0,0},{255,127,127},LinePattern.Solid,FillPattern.Solid,0.25,{{-25.94,-24.44},{25.89,-3.273}}),<LineBreak />
            Ellipse(true,{0,0,0},{255,127,127},LinePattern.Solid,FillPattern.Solid,0.25,{{-34.54,-10.05},{35.37,20.6}}),<LineBreak />
            Ellipse(true,{0,0,0},{255,127,127},LinePattern.Solid,FillPattern.Solid,0.25,{{-49.95,8.29},{50.05,49.12}}),<LineBreak />
            Text(true,{0,0,255},{0,0,255},LinePattern.Solid,FillPattern.Solid,0.25,{{-99.71,-65.65},{100.2,-25.6}},"%name",0.0,"")}}
        </TextBlock>
        
        <Button x:Name="ShowIcon" Grid.Column="1" Content="&lt;- Show this Icon" Margin="0,225,375,0" 
                VerticalAlignment="Top" Click="ShowIcon_Click"/>
        <Button x:Name="ShowIcon2" Content="Show another Icon" Margin="129,225,246,0" 
        	    VerticalAlignment="Top" Click="ShowIcon2_Click" Grid.Column="1"/>
        <Button x:Name="ShowIcon3" Content="Show third Icon" Margin="0,225,117,0" 
        	    VerticalAlignment="Top" Click="ShowIcon3_Click" HorizontalAlignment="Right" Width="125" Grid.Column="1"/>
                
        <TextBlock Margin="0,0,0,92" VerticalAlignment="Bottom" Height="200" 
            Background="#FF313131" Foreground="#FFCCCCCC" TextWrapping="Wrap" Grid.Column="1" x:Name="OutputTextBox">
            ... still nothing ...
        </TextBlock>
        
        <Button x:Name="GetIcon" Grid.Column="1" Content="Get Annotation -&gt;" Margin="0,262.04,375,0" 
                VerticalAlignment="Top" Click="GetIcon_Click"/>        
    </Grid>
</Page>
